/*
 * @Author: your name
 * @Date: 2020-08-31 14:20:59
 * @LastEditTime: 2020-08-31 14:31:00
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: /express/src/controller/decorator.ts
 */
export function controller (target: any) {
  for(let key in target.prototype) {
    console.log(Reflect.getMetadata('path', target.prototype, key));
  }
}

export function get(path: string) {
  return function(target: any,key:string) {
    Reflect.defineMetadata('path', path, target, key);
  }
}
